'use strict';

var _data_parser = require('./data_parser');

var _data_parser2 = _interopRequireDefault(_data_parser);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var lastTimeStamp;

var timePoints = [];

function parseData(res) {
    var data = {};
    data.items = [];
    res.split(/\n/).forEach(function (str, k) {
        if (/\d\d\d\d-\d\d-\d\d/.test(str)) {
            data.timeStamp = str;
        }
        if (/\d{1,3}:\d\d;/.test(str)) {
            data.items.push(str.split(';'));
        }
    });

    return data;
}